﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Kingdee.BOS.Core.CloudModel
{
    public class IsSuccessResult
    {
        public int Code { get; set; }
        public object Result { get; set; }
        public string Message { get; set; }
    }


    public class NeedsResult
    {
        public int? Id { get; set; }
        public string Number { get; set; }
    }

    public class NeedsNumbers
    {
        public string Number { get; set; }
    }

    #region 查询库存
    public class NeedsQty
    {
        public string DataOp { get; set; }
        public int? DataRows { get; set; }
        public List<NeedsQuery> Data { get; set; }
    }

    public class NeedsQuery
    {
        public string Number { get; set; }
        /// <summary>
        /// 即时库存
        /// </summary>
        public decimal? RealQty { get; set; }
        /// <summary>
        /// 锁库
        /// </summary>
        public decimal? LockLibraryQty { get; set; }
        /// <summary>
        /// 预计出
        /// </summary>
        public decimal? ExpectedQty { get; set; }
        /// <summary>
        /// 预计入
        /// </summary>
        public decimal? PreRecordedQTY { get; set; }
        /// <summary>
        /// 预计可出数量
        /// </summary>
        public decimal? ExpectedToBeAvailableQty { get; set; }
        public List<DetailEntry> Detail { get; set; }
    }

    public class DetailEntry
    {
        public string StockName { get; set; }
        /// <summary>
        /// 即时库存
        /// </summary>
        public decimal? RealQty { get; set; }
        /// <summary>
        /// 锁库
        /// </summary>
        public decimal? LockLibraryQty { get; set; }
        /// <summary>
        /// 预计出
        /// </summary>
        public decimal? ExpectedQty { get; set; }
        /// <summary>
        /// 预计入
        /// </summary>
        public decimal? PreRecordedQTY { get; set; }
        /// <summary>
        /// 预计可出数量
        /// </summary>
        public decimal? ExpectedToBeAvailableQty { get; set; }
    }
    #endregion


    #region 
    public class NeedsInOut
    {
        public string OpType { get; set; }
        public int? DataRows { get; set; }
        public List<NeedsInOutEntry> DataEntry{ get; set; }
    }

    public class NeedsInOutEntry
    {
        public string MaterimalNo { get; set; }
        public decimal? StockQty { get; set; }
        public bool? IsInOutStock { get; set; }
    }
    #endregion
}
